package cn.com.taiji.pos.entity;

import cn.com.taiji.entity.StringUUIDEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FrontToWork extends StringUUIDEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 备用金额
     */
    @TableField("RESERVE_AMOUNT")
    private BigDecimal reserveAmount;

    /**
     * 确认金额
     */
    @TableField("CONFIRM_AMOUNT")
    private BigDecimal confirmAmount;

    /**
     * 操作原因
     */
    @TableField("REASON_ID")
    private String reasonId;

    /**
     * 开班人
     */
    @TableField("CASHIER_ID")
    private String cashierId;

    /**
     * 所属POS机
     */
    @TableField("POS_MACHINE_ID")
    private String posMachineId = "";

    /**
     * 所属餐次
     */
    @TableField("MEAL_TIME_ID")
    private String mealTimeId;

    /**
     * 所属餐厅
     */
    @TableField("RESTAURANT_ID")
    private String restaurantId;

    /**
     * 创建人
     */
    @TableField("CREATOR_ID")
    private String creatorId;

    /**
     * 创建人姓名
     */
    @TableField("CREATOR_NAME")
    private String creatorName;

    /**
     * 创建时间(接班时间)
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;


}
